package com.along.game.model;

import java.math.BigDecimal;

/**
 * GamesceneId entity. @author MyEclipse Persistence Tools
 */

public class Gamescene implements java.io.Serializable {

	// Fields

	private BigDecimal filedId;
	private BigDecimal parentFieldid;
	private String gamesceneName;
	private String ifEnable;
	private String greade;
	// Constructors
private String parentScenName;
	
	public String getParentScenName() {
	return parentScenName;
}


	public void setParentScenName(String parentScenName) {
		this.parentScenName = parentScenName;
	}


	/** default constructor */
	public Gamescene() {
	}

	/** full constructor */
	public Gamescene(BigDecimal filedId, BigDecimal parentFieldid,
			String gamesceneName, String ifEnable) {
		this.filedId = filedId;
		this.parentFieldid = parentFieldid;
		this.gamesceneName = gamesceneName;
		this.ifEnable = ifEnable;
	}

	// Property accessors

	public BigDecimal getFiledId() {
		return this.filedId;
	}

	public void setFiledId(BigDecimal filedId) {
		this.filedId = filedId;
	}

	public BigDecimal getParentFieldid() {
		return this.parentFieldid;
	}

	public void setParentFieldid(BigDecimal parentFieldid) {
		this.parentFieldid = parentFieldid;
	}

	public String getGamesceneName() {
		return this.gamesceneName;
	}

	public void setGamesceneName(String gamesceneName) {
		this.gamesceneName = gamesceneName;
	}

	public String getIfEnable() {
		return this.ifEnable;
	}

	public void setIfEnable(String ifEnable) {
		this.ifEnable = ifEnable;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Gamescene))
			return false;
		Gamescene castOther = (Gamescene) other;

		return ((this.getFiledId() == castOther.getFiledId()) || (this
				.getFiledId() != null
				&& castOther.getFiledId() != null && this.getFiledId().equals(
				castOther.getFiledId())))
				&& ((this.getParentFieldid() == castOther.getParentFieldid()) || (this
						.getParentFieldid() != null
						&& castOther.getParentFieldid() != null && this
						.getParentFieldid()
						.equals(castOther.getParentFieldid())))
				&& ((this.getGamesceneName() == castOther.getGamesceneName()) || (this
						.getGamesceneName() != null
						&& castOther.getGamesceneName() != null && this
						.getGamesceneName()
						.equals(castOther.getGamesceneName())))
				&& ((this.getIfEnable() == castOther.getIfEnable()) || (this
						.getIfEnable() != null
						&& castOther.getIfEnable() != null && this
						.getIfEnable().equals(castOther.getIfEnable())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getFiledId() == null ? 0 : this.getFiledId().hashCode());
		result = 37
				* result
				+ (getParentFieldid() == null ? 0 : this.getParentFieldid()
						.hashCode());
		result = 37
				* result
				+ (getGamesceneName() == null ? 0 : this.getGamesceneName()
						.hashCode());
		result = 37 * result
				+ (getIfEnable() == null ? 0 : this.getIfEnable().hashCode());
		return result;
	}

	public String getGreade() {
		return greade;
	}

	public void setGreade(String greade) {
		this.greade = greade;
	}



}